//
//  GGBouncedBaseView.h
//  unzip
//
//  Created by yg on 2021/11/21.
//

#import <UIKit/UIKit.h>
#import "GGMacroDefinitin.h"


NS_ASSUME_NONNULL_BEGIN

//从底部弹出提示框的基础类，使用时继承于本类在contentView或headView中添加UI即可
@interface GGBouncedBaseView : UIView

@property (nonatomic, assign, readonly) CGFloat boxHeight;//白框的高度，自动计算
@property (nonatomic, strong) UIView *boxView;
@property (nonatomic, strong) UIButton *backgroundButton;
@property (nonatomic, strong) UIView *headerView;
@property (nonatomic, strong) UIView *contentView;
@property (nonatomic, assign) CGFloat headerHeight;
@property (nonatomic, assign) CGFloat contentHeight;
@property (nonatomic, assign) float backgroundAlpha;
@property (nonatomic, assign) float boxCornerRadius;
@property (nonatomic, assign) CGFloat boxBottomOffset;
@property (nonatomic, assign) CGFloat contentBottomOffset;
@property (nonatomic, assign) BOOL isBackground;//是否有背景

- (void)showInView:(UIView *)view;
- (void)dismiss;
- (void)layoutItem;

@end

NS_ASSUME_NONNULL_END
